package com.book.domain;

public class Friend {
	private String cmcode;
	private String mnickname;
	private String picode;
	
	public Friend(){}

	public String getCmcode() {
		return cmcode;
	}

	public void setCmcode(String cmcode) {
		this.cmcode = cmcode;
	}

	public String getMnickname() {
		return mnickname;
	}

	public void setMnickname(String mnickname) {
		this.mnickname = mnickname;
	}

	public String getPicode() {
		return picode;
	}

	public void setPicode(String picode) {
		this.picode = picode;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((cmcode == null) ? 0 : cmcode.hashCode());
		result = prime * result
				+ ((mnickname == null) ? 0 : mnickname.hashCode());
		result = prime * result + ((picode == null) ? 0 : picode.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Friend other = (Friend) obj;
		if (cmcode == null) {
			if (other.cmcode != null)
				return false;
		} else if (!cmcode.equals(other.cmcode))
			return false;
		if (mnickname == null) {
			if (other.mnickname != null)
				return false;
		} else if (!mnickname.equals(other.mnickname))
			return false;
		if (picode == null) {
			if (other.picode != null)
				return false;
		} else if (!picode.equals(other.picode))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Friend [cmcode=" + cmcode + ", mnickname=" + mnickname
				+ ", picode=" + picode + "]";
	}
	
	

}
